package com.css.constant;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName ReturnCode
 * @Auther qiumengmeng
 * @Date 2024/7/13 下午5:19
 */
@Data
public class ReturnCode {

    @TableField(exist = false)
    private String returncode;

    @TableField(exist = false)
    private String returnmsg;

    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private String msg;


    public String getReturnmsg() {
        if(StringUtils.isNotBlank(returnmsg)){
            return returnmsg;
        }else{
            return msg;
        }
    }

    public String getRCode() {
        if(StringUtils.isNotBlank(returncode)){
            return returncode;
        }else{
            return code;
        }
    }

}
